import { useWindowStore } from "@/store/window"

// 关闭，从数组中删除
export const useCloseWin = (wid: number) => {
  const windowStore = useWindowStore()
  const index = windowStore.winConfigs.findIndex((item) => item.wid === wid)
  windowStore.winConfigs.splice(index, 1)
}
